#ifndef __CTASKTREEITEM_H__
#define __CTASKTREEITEM_H__

#include "STask.h"
#include <QTreeWidgetItem>
#include <QObject>

class CTaskTreeItem : public QObject, public QTreeWidgetItem
{
	Q_OBJECT
	
public:
	CTaskTreeItem(QTreeWidget *parent, STask *task = 0);
	
	void setTask(STask *task);
	STask* task();
	
private:
	STask *m_task;
	void updateData();
	void addInformations(QString label, QString info);
};

#endif //__CTASKTREEITEM_H__
